<?php
/**
 * Aero - Xistins Technologies PHP Framework
 * 
 * LICENSE
 * This source file is subject to the New BSD license that is bundled 
 * with this package in the LICENSE.txt. It is also available through 
 * the world-wide-web at this URL: http://dev.xistins.com/license/production
 * If you did not receive a copy of this license and are unable to obtain
 * it through the world-wide-web, please send an email to 
 * license@xistins.com so we can send you a copy immediately.
 * 
 * @category   Aero
 * @package    Aero_Version
 * @copyright  http://dev.xistins.com/license/production     New BSD
 * @version    $Id: Version.php 4 2009-11-14 18:35:45Z csouth@xistins.com $
 */

/**
 * Get framework version
 * 
 * @category   Aero
 * @package    Aero_Version
 * @copyright  http://dev.xistins.com/license/production     New BSD
 * @version    $Id: Version.php 4 2009-11-14 18:35:45Z csouth@xistins.com $
 */
final class Aero_Version
{
    /**
     * Aero Framework Version
     * trunk = From subversion
     */
    const VERSION = '1.1.0b';

    /**
     * Compare version string to current version of the framework.
     *
     * @param  string  $version  A version string (e.g. "0.7.1").
     * @return boolean           -1 if the $version is older,
     *                           0 if they are the same,
     *                           and +1 if $version is newer.
     */
    public static function compareVersion($version)
    {
        return version_compare($version, self::VERSION);
    }
}